import {ObjectDto, ObjectDtoInterface} from "../../services/sqliteDB/object.dto";
import { TableColumnType } from "../../services/sqliteDB/object.dto";
import {SyncStatus} from "../sync-status";

export class DeviceDto extends ObjectDto implements ObjectDtoInterface {
    public id: string = null; // 设备id
    public name: string = null; // 设备名
    public type: string = null; // 设备类型
    public componentId: string = null; // 设备位置Id
    public componentName: string = null; // 设备位置名称
    public syncStatus: SyncStatus = SyncStatus.None;
    constructor() {
        super();

    }

    table() {
        return {
            tableName: "Devices",
            tableConstructor: {
                id: `${TableColumnType.text}`,
                name: TableColumnType.text,
                type: TableColumnType.text,
                componentId: TableColumnType.text,
                componentName: TableColumnType.text,
                syncStatus: TableColumnType.int
            }
        };
    }

}



